package com.ybbase.framework.model.po.flow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 流程模型配置表
 * </p>
 *
 * @author cg
 * @since 2019-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("act_flow_config")
@ApiModel(value="FlowConfig对象", description="流程模型配置表")
public class FlowConfig extends Model<FlowConfig> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一编码 : 唯一编码")
    private Integer id;

    @ApiModelProperty(value = "流程名称 : 业务名称")
    private String flowName;

    @ApiModelProperty(value = "流程code : 业务code")
    private String flowCode;

    @ApiModelProperty(value = "模型编码 : 模型编码")
    private String modelCode;

    @ApiModelProperty(value = "版本号 : 版本号")
    private String version;

    @ApiModelProperty(value = "是否启用 : 0不启用 1启用")
    private Integer isEnable;

    @ApiModelProperty(value = "部署编码")
    private String deployCode;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    /*********************************扩展***************************************/
    @ApiModelProperty(value = "节点编码集")
    @TableField(exist = false)
    public List<NodeConfig> nodeConfig;

    @ApiModelProperty(value = "节点名称字符串")
    @TableField(exist = false)
    public String nodeNames;

}
